﻿using Csla;
using System;

namespace Ent.Inscripcion.Core.Core
{
    [Serializable]
    public class EstudianteExamenCriterio : BusinessBase<EstudianteExamenCriterio>
    {
        #region Business Methods

        private static PropertyInfo<DateTime> FechaProperty = RegisterProperty<DateTime>(o => o.Fecha, "Name");
        public DateTime Fecha
        {
            get { return GetProperty(FechaProperty); }
            set { SetProperty(FechaProperty, value); }
        }

        private static PropertyInfo<DateTime> HoraProperty = RegisterProperty<DateTime>(o => o.Hora, "Name");
        public DateTime Hora
        {
            get { return GetProperty(HoraProperty); }
            set { SetProperty(HoraProperty, value); }
        }

        private static PropertyInfo<string> CedulaProperty = RegisterProperty<string>(o => o.Cedula, "Cedula");
        public string Cedula
        {
            get { return GetProperty(CedulaProperty); }
            set { SetProperty(CedulaProperty, value); }
        }
        #endregion

        

        #region Factory Methods

        public static EstudianteExamenCriterio NewEstudianteExamenCriterio()
        {
            return DataPortal.Create<EstudianteExamenCriterio>();
        }

        

        private EstudianteExamenCriterio()
        { /* Require use of factory methods */ }

        #endregion


    }

}